https://glot.io/snippets/ghbt6sg0ln/raw/main.lua